package com.example.hxds.odr.service;

import com.example.hxds.common.util.PageUtils;
import com.example.hxds.odr.db.pojo.OrderBillEntity;
import com.example.hxds.odr.db.pojo.OrderEntity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Handler;

/**
 * @Author XUYANG
 * @Date 2024-03-12 16:39
 */
public interface OrderService {
    public HashMap searchDriverTodayBusinessData(long driverId);
    public String insertOrder(OrderBillEntity billEntity, OrderEntity orderEntity);
    public String acceptNewOrder(long driverId,long orderId);
    public HashMap searchDriverExecuteOrder(Map param);

    public Integer searchOrderStatus(Map param);
    public String deleteUnAcceptOrder(Map param);
    public HashMap searchDriverCurrentOrder(long driverId);
    public HashMap hasCustomerCurrentOrder(long customerId);
    public HashMap searchOrderForMoveById(Map param);
    public int arriveStartPlace(Map param);
    public boolean confirmArriveStartPlace(long orderId);
    public int startDriving(Map param);
    public int updateOrderStatus(Map param);
    public PageUtils searchOrderByPage(Map param);
    public HashMap searchOrderContent(long orderId);
    public ArrayList<HashMap> searchOrderStartLocationIn30Days();
    public boolean validDriverOwnOrder(Map param);
    public HashMap searchSettlementNeedData(long orderId);
    public HashMap searchOrderById(Map param);
    public HashMap validCanPayOrder(Map param);
    public int updateOrderPrepayId(Map param);
    public void handlePayment(String uuid,String payId,String driverOpenId,String payTime);
    public String updateOrderAboutPayment(Map param);
    public PageUtils searchDriverOrderByPage(Map param);
    public PageUtils searchCustomerOrderByPage(Map param);
    public String searchCommentIdByOrderId(long orderId);
}
